const modulesFiles: any = import.meta.glob('./modules/**/*.ts', {eager: true})

const modules = {}
for (const key in modulesFiles) {
	modules[key.replace(/^\.\/(.*)\.\w+$/, '$1')] = modulesFiles[key].default
}

let appList: any = {}
for (const key in modules) {
	appList = {...appList, ...modules[key]}
}
export default appList
